<?php
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/js/fingerprint.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/js/jquery-1.10.1.min.js",CClientScript::POS_HEAD);
//Yii::app()->clientScript->registerScriptFile($this->staticsPath."/js/alert.js",CClientScript::POS_HEAD);


Yii::app()->clientScript->registerScriptFile($this->staticsPath."/frontend/mobiscroll/js/mobiscroll.core.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/frontend/mobiscroll/js/mobiscroll.widget.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/frontend/mobiscroll/js/mobiscroll.scroller.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/frontend/mobiscroll/js/mobiscroll.util.datetime.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/frontend/mobiscroll/js/mobiscroll.datetimebase.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/frontend/mobiscroll/js/mobiscroll.widget.ios.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/frontend/mobiscroll/js/mobiscroll.i18n.zh.js",CClientScript::POS_HEAD);



Yii::app()->clientScript->registerCssFile($this->staticsPath."/css/global.css");
Yii::app()->clientScript->registerCssFile($this->staticsPath."/css/index.css");
Yii::app()->clientScript->registerCssFile($this->staticsPath."/css/font-awesome.min.css");
Yii::app()->clientScript->registerCssFile($this->staticsPath."/Font-Awesome-3.2.1/css/font-awesome.min.css");
Yii::app()->clientScript->registerCssFile($this->staticsPath."/css/bootstrap.min.css");

Yii::app()->clientScript->registerCssFile("//cdn.bootcss.com/weui/0.4.3/style/weui.min.css");
Yii::app()->clientScript->registerCssFile("//cdn.bootcss.com/jquery-weui/0.8.0/css/jquery-weui.min.css");
Yii::app()->clientScript->registerCssFile($this->staticsPath."/css/demo.css");
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/js/alert.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/js/js_mobile_common_new.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/js/sweetalert.min.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/js/demo.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile("//cdn.bootcss.com/jquery-weui/0.8.0/js/swiper.min.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile("//cdn.bootcss.com/jquery-weui/0.8.0/js/jquery-weui.min.js",CClientScript::POS_HEAD);

?>
 <header class="homeHder header">
<!--        <a href="--><?php //echo Yii::app()->createUrl('user/index',array('openid'=>$openid)) ?><!--">-->
<!--        <div class="hder_return flol">-->
<!---->
<!--                <i class="size fa fa-angle-left"></i>-->
<!---->
<!--        </div>-->
<!--        </a>-->
         <a  style="font-size:15px;margin-left:10px;float:left;width:50px;" href="<?php echo $this->createUrl('member',array('type'=>$type)) ?>">返回</a>
        <div class="hder_logo">   <?php echo $ptitle ?></div>
         <?php   if($type=='2') {?>
            <a id="zs" style="font-size:15px;margin-right:10px;float:right;width:50px;" href="#">搜索</a>
             <?php }?>
        
    </header>
  <div class="weui_panel">
      <div class="weui_panel_bd">
       <?php 
                if($newlist){
             foreach($newlist as $v){ ?>
        <div class="weui_media_box weui_media_text tr_div" id="<?php echo $v['opus']['id'] ?>">
          <h4 class="weui_media_title"><?php echo $v['opus']['opus_title'] ?></h4>
          <p class="weui_media_desc"><?php echo $v['opus']['opus_desc'] ?></p>
          <ul class="weui_media_info">
            <li class="weui_media_info_meta">来源:<?php echo $v['userinfo']['user_name'] ?></li>
            <li class="weui_media_info_meta">时间:<?php echo $v['opus']['create_time'] ?></li>
       
          </ul>
        </div>
           <?php }} ?>
      </div>
    </div>
    <script>
    $(document).ready(function(){
        $(".tr_div").bind("click",function(){
           var oid= $(this).attr("id");
            window.location.href='<?php echo Yii::app()->createUrl('user/opustmodel') ?>oid/'+oid;
       });
    });
    </script>